
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Simple Sortable List - Floated Nodes</title>

<style type="text/css">
/*margin and padding on body element
  can introduce errors in determining
  element position and are not recommended;
  we turn them off as a foundation for YUI
  CSS treatments. */
body {
	margin:0;
	padding:0;
}
</style>

<link type="text/css" rel="stylesheet" href="../../build/cssfonts/fonts-min.css" />
<script type="text/javascript" src="../../build/yui/yui-min.js"></script>

<!--there is no custom header content for this example-->

</head>

<body class="yui3-skin-sam  yui-skin-sam">

<h1>Simple Sortable List - Floated Nodes</h1>

<div class="exampleIntro">
	<p>Making a simple sortable list with floated nodes.</p>
			
</div>

<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->

<style>
    #demo {
        border: 1px solid black;
        height: 200px;
    }
    #demo em {
        display: block;
        float: left;
        padding: 3px;
        width: 150px;
        border: 1px solid black;
        margin: 3px;
        background-color: #8DD5E7;
    }
</style>

<div id="demo">
    <em>Item #1</em>
    <em>Item #2</em>
    <em>Item #3</em>
    <em>Item #4</em>
    <em>Item #5</em>
    <em>Item #6</em>
    <em>Item #7</em>
    <em>Item #8</em>
    <em>Item #9</em>
    <em>Item #10</em>
</div>

<script>

YUI().use('sortable', function(Y) {
    var sortable = new Y.Sortable({
        container: '#demo',
        nodes: 'em',
        opacity: '.1'
    });
});
</script>

<!--END SOURCE CODE FOR EXAMPLE =============================== -->

</body>
</html>
